package com.digitalxpert.jargle.TestGui;

import java.awt.Container;
import java.awt.Rectangle;
import javax.swing.JDialog;
import javax.swing.JFrame;

public class MainFrame extends JDialog {
    boolean modal = false;

    public MainFrame(JDialog owner, boolean modal) {
        super(owner);
        this.modal = modal;
        init();
    }

    public MainFrame() {
        init();
    }

    private void init() {
        this.setModal(modal);
        TabbedPane t = new TabbedPane(this);
        getContentPane().add(t);
        setBounds(new Rectangle(100, 100, 500, 400));
        this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        setVisible(true);
        GlobalMouseListener gml = new GlobalMouseListener(this);
    }
}
